//
//  HttpDatas.h
//  shuai
//
//  Created by xingshuai on 2019/7/13.
//  Copyright © 2019 xingshuai. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HttpDatas : NSObject

/** 文件上传，获取路径url（图片） */
+(void)requestImgUploadFile:(UIImage *)file success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 注册 */
+(void)requestRegistUser_type:(NSString *)user_type name:(NSString *)name email:(NSString *)email password:(NSString *)password photo:(NSString *)photo success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 登陆 */
+(void)requestLoginUser_type:(NSString *)user_type email:(NSString *)email password:(NSString *)password success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 首页公开列表 */
+(void)requestHomeTOken:(NSString *)token page:(NSInteger)page pageSize:(NSInteger)pageSize success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 首页用户操作 1、收藏。  2、喜欢。 3、聊天 */
+(void)requestHomeToken:(NSString *)token user_id:(NSString *)user_id type:(NSString *)type success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 当前页卡详细信息 */
+(void)requestInforHomeToken:(NSString *)token user_id:(NSString *)user_id success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 个人中心（获取） */
+(void)requestOneSelfDataHomeToken:(NSString *)token success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 个人中心（保存） */
+(void)requestSaveOneSelfDataToken:(NSString *)token photo:(NSString *)photo photo1:(NSString *)photo1 photo2:(NSString *)photo2 photo3:(NSString *)photo3 user_name:(NSString *)user_name age:(NSString *)age work:(NSString *)work bio:(NSString *)bio age_min:(NSString *)age_min age_max:(NSString *)age_max success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 好友列表 */
+(void)requestFriendDataToken:(NSString *)token success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 收藏 喜欢列表 */
+(void)requestCollectFriendDataToken:(NSString *)token success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

/** 聊天信息 */
+(void)requestImDataDataToken:(NSString *)token user_id:(NSString *)user_id success:(void(^)(id json))success failure:(void(^)(NSError *err))failure;

@end

NS_ASSUME_NONNULL_END
